reftests: Add test for the recent label changes
authorBenjamin Otte <otte@redhat.com>
Thu, 10 Jul 2014 16:55:37 +0000 (18:55 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 10 Jul 2014 16:56:35 +0000 (18:56 +0200)
testsuite/reftests/Makefile.am
testsuite/reftests/label-clipping.css [new file with mode: 0644]
testsuite/reftests/label-clipping.ref.ui [new file with mode: 0644]
testsuite/reftests/label-clipping.ui [new file with mode: 0644]

index fa505b38547bbdf0baaa7c417f30bcf70f18cf9e..d1b2f67591a7aa693dfa028b66014d6715991f30 100644 (file)
@@ -244,6 +244,9 @@ testdata = \
        label-attribute-preference.css \
        label-attribute-preference.ref.ui \
        label-attribute-preference.ui \
+       label-clipping.css \
+       label-clipping.ref.ui \
+       label-clipping.ui \
        label-ellipsize-small.ref.ui \
        label-ellipsize-small.ui \
        label-ellipsize-with-big.ref.ui \
diff --git a/testsuite/reftests/label-clipping.css b/testsuite/reftests/label-clipping.css
new file mode 100644 (file)
index 0000000..b2e2497
--- /dev/null
@@ -0,0 +1,6 @@
+@import "reset-to-defaults.css";
+
+GtkLabel {
+  font-size: 40px;
+  font-style: italic;
+}
diff --git a/testsuite/reftests/label-clipping.ref.ui b/testsuite/reftests/label-clipping.ref.ui
new file mode 100644 (file)
index 0000000..13eba47
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.18.1 -->
+<interface>
+  <requires lib="gtk+" version="3.12"/>
+  <object class="GtkWindow" id="window1">
+    <property name="width_request">500</property>
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkLabel" id="label1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="label" translatable="yes">fffffffff</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/reftests/label-clipping.ui b/testsuite/reftests/label-clipping.ui
new file mode 100644 (file)
index 0000000..ea6acb3
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.18.1 -->
+<interface>
+  <requires lib="gtk+" version="3.12"/>
+  <object class="GtkWindow" id="window1">
+    <property name="width_request">500</property>
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkBox" id="box2">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="halign">center</property>
+        <property name="valign">center</property>
+        <property name="orientation">vertical</property>
+        <child>
+          <object class="GtkLabel" id="label1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">fffffffff</property>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>